import u from 'urllib'
export const port = '7676'
const url = 'http://127.0.0.1:' + port

export default (str = '', read = '', type = true) => {
    console.log(str)
    console.log(read)
    console.log(type)   
    return u.request(url, {
        method: 'POST',
        timeout: 3000,
        data: {
            str,
            read,
            type
        }
    }).catch(e => {
        console.log(e)
    })
}